package o;

import com.google.gson.JsonSyntaxException;
import java.io.IOException;
import java.sql.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;

public final class aun extends ato<Date> {
    public static final ats ॱ = new ats() {
        public <T> ato<T> ˎ(atb o_atb, auv<T> o_auv_T) {
            return o_auv_T.ˋ() == Date.class ? new aun() : null;
        }
    };
    private final DateFormat ˋ = new SimpleDateFormat("MMM d, yyyy");

    public /* synthetic */ void ˎ(aux o_aux, Object obj) throws IOException {
        ˏ(o_aux, (Date) obj);
    }

    public /* synthetic */ Object ˏ(auy o_auy) throws IOException {
        return ˊ(o_auy);
    }

    public synchronized Date ˊ(auy o_auy) throws IOException {
        Date date;
        if (o_auy.ʻ() == auz.NULL) {
            o_auy.ॱॱ();
            date = null;
        } else {
            try {
                date = new Date(this.ˋ.parse(o_auy.ʽ()).getTime());
            } catch (Throwable e) {
                throw new JsonSyntaxException(e);
            }
        }
        return date;
    }

    public synchronized void ˏ(aux o_aux, Date date) throws IOException {
        o_aux.ˊ(date == null ? null : this.ˋ.format(date));
    }
}
